<?php
set_time_limit(0);
require_once 'functions.php';
$file = PATH_ROOT . 'video' . DIRECTORY_SEPARATOR."aa.mp4";
$cmd = 'ffmpeg -i "http://eto.iobb.net:8003/cgi-bin/encoder?USER=admin&PWD=123456&GET_STREAM" -vcodec libx264 -qmin 1 -qmax 1 -r 10 -t 2  "'.$file.'"';

exec($cmd);
echo $cmd;